import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPersist from 'pinia-plugin-persist'
import App from './App.vue'
import 'virtual:svg-icons-register'; // 导入 svg 图标
import 'element-plus/dist/index.css' // 引入 Element Plus 样式
import 'element-plus/theme-chalk/dark/css-vars.css' // 引入 Element Plus 深色模式样式
import permission from './directives/permission';

// 全局样式
import './assets/styles/index.css'
import router from './router/index.js'

const pinia = createPinia()
pinia.use(piniaPersist)

createApp(App)
.use(router)
.use(pinia)
.directive('permission', permission)
.mount('#app')
